﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ObraListGrid.ascx.cs" 
Inherits="UILGestion.Admin.Obras.ObraListGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../../Scripts/controlGrid.js" type="text/javascript"></script>


<asp:Panel runat="server" ID="Panelcomparativo" Font-Size="X-Small" Font-Names="Arial" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server"  class="ms-crm-List-Header">
            
            <tr id="Tr1" runat="server" >
            
               
               
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="descripcion" ForeColor="Blue"  runat="server">DESCRIPCION</asp:LinkButton>
                </th>
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="direccion" ForeColor="Blue" runat="server">DIRECCION</asp:LinkButton>
                </th>
                <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton2"  CommandName="Sort" CommandArgument="proyecto" ForeColor="Blue" runat="server">PROYECTO</asp:LinkButton>
                </th>
                     

            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#eee":"#fff" %>'>
            <td width="350px"> <%--
                <asp:Image ID="PersonIcon" ImageUrl="~/images/individual.gif" Width="10px" Height="12px"
                    runat="server" />
               <asp:HyperLink ID="PersonLink" runat="server" NavigateUrl='<%# Eval("idInternal","~/ObraAdmin/ComparativoReadForm.aspx?id={0}") %>'
                    Text='<%# Eval("numDocumento") %>'></asp:HyperLink>--%>


                <asp:Hyperlink runat= "server"  ForeColor="blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"descripcion").ToString()%>'  
                 Target="_self"  ID="Comparativo"
                NavigateUrl='<%# "~/Admin/Obras/ObraReadForm.aspx?id=" + DataBinder.Eval (Container.DataItem,"idinternal").ToString()%>' 
               />   
                
                

            </td>
           
           
             <td  width="350px">
                <%# Eval("direccion")%><br />
            </td>
            
            <td align="right" width="350px">
            <%# Eval("proyecto")%><br />
                 
            </td>
           
           
                                  
         
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" style="">
            <tr>
                <td>
                     <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     